<div class="top-action">
	<ul class="links">
		<li class="record-list"><a href="albumsizes-list.php">List Album Sizes</a></li>
	</ul>
</div>
<div class="form-wrap">
	<form id="albumsizes-edit-form" name="albumsizes-edit-form" method="post" action="albumsizes-edit.php" enctype="multipart/form-data">
  <table class="data-editor">
	<tr class="{cycle values='A,B'}">
	  <td class="attribute">Album: <span class="required">*</span></td>
	  <td>{$albumsizes.album_id|table:'gallery_albums':'album_name':'album_id'}</td>
	  </tr>
	<tr class="{cycle values='A,B'}">
	  <td class="attribute">Size: <span class="required">*</span></td>
	  <td>
	    <select name="albumsizes[size_id]">
			<option value="">-- Chooose a size --</option>
			{html_options options="gallery:sizes"|dropdown selected=$albumsizes.size_id}
		</select>
	  You cannot use a size more than once per album</td>
	  </tr>
	<tr class="{cycle values='A,B'}">
	  <td class="attribute">&nbsp;</td>
	  <td><strong>{$albumsizes.size_id|table:'gallery_sizes':'size_name':'size_id'} - Do not modify! unless you are sure of it. </strong></td>
	  </tr>
	<tr class="{cycle values='A,B'}">
		<td class="attribute">Store Location: <span class="required">*</span></td>
		<td>
			<input type="text" name="albumsizes[store_location]" value="{$albumsizes.store_location|utf8}" class="input" id="albumsizes-store_location" />
			<span class="form-hints">Where to store the resized images?</span>		</td>
	</tr>

	<tr class="{cycle values='A,B'}">
		<td class="attribute">Store Comments: <span class="required">*</span></td>
		<td>
			<input type="text" name="albumsizes[store_comments]" value="{$albumsizes.store_comments|utf8}" class="input" id="albumsizes-store_comments" />
			<span class="form-hints">Readable text to identify this size</span>		</td>
	</tr>


    <tr>
      <td class="attribute">&nbsp;</td>
      <td>
		<input type="text" name="email" value="" class="vanish" />
		<input type="text" name="is_spam" value="" class="vanish" />
		<!--{* 100% sure, only spammers fill these fields, Leave blank. *}-->
		
		<input type="hidden" name="relationship_id" value="{$albumsizes.relationship_id}" />
		
		<!-- This is different than system's protection code. This is related to particular ID. -->
		<input type="hidden" name="protection_code" value="{$albumsizes.code}" />
		<input type="hidden" name="edit-action" value="Edit Album Sizes" />
		<input type="submit" name="submit-button" class="submit" value="Save Changes" />
		<a href="{url::last_page('albumsizes-list.php')}" class="button-cancel">Cancel</a>	  </td>
    </tr>
  </table>
</form>
</div>
<!-- End of administrators Edit -->

<!-- Validation -->
<script type="text/javascript" src="js/validator/gen_validatorv31.js"></script>
{js src='validators/albumsizes/edit.js' validator=true}

<!-- Rich Editor: Remove if not necessary. Or, use different .js files -->
<script type="text/javascript" src="js/tinymce/tiny_mce.js"></script>
<script type="text/javascript" src="js/tinymce-textareas.js"></script>

<!-- End of albumsizes Edit -->
